<template>
  <t-banner
    class="bg-primary text-white"
    inline-actions
    @bannerBtnClick="btnClick"
    content="通知通知通知通知通知通知通知通知通知通知通知通知"
    :actions="[{ value: 'btnClose', label: '', icon: 'close' }]"
    icon="signal_wifi_off"
    :scroll="false"
    :over-width="true"
    ref="Tbanner"
  >
  </t-banner>
</template>

<script setup>
  import { ref, onMounted } from 'vue';
  const Tbanner = ref(null);
  const btnClick = action => {
    console.log(action.label, 'btn');
    Tbanner.value.content = 'false';
  };
  onMounted(() => {
    console.log(Tbanner.value.content);
  });
</script>
